package com.cssw.fyzb.core.dao.system;

import com.cssw.fyzb.core.model.dodb.SysFunc;
import com.cssw.fyzb.core.model.dodb.SysRole;
import com.cssw.fyzb.core.model.dodb.SysRoleFunc;
import com.ydn.dbframe.plugin.activerecord.Page;

import java.util.List;

/**
 * @Author yangyiqun
 * @create 2020-08-10 11:06
 */
public interface RoleDao {


    SysRole getById(Integer roleId);

    Page<SysRole> list(String roleName, int page, int limit);

    void update(Long roleId, String roleName, String remark,Long operId);

    void save(String roleName, String remark,Long operId);

    void delete(Long roleId);

    List<SysFunc> queryFuncByRoleId(Long roleId);

    void deleteRoleFuncByRoleId(Long roleId,Long operId);

    void batchSaveRoleFunc(List<SysRoleFunc> roleFuncs);

}
